package com.xxwy.springbootwebfluxclient.document;

import lombok.Builder;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;

/**
 * 类名随意，但是字段要一样
 * @author xxwy
 */
@Data
@Builder
public class User {
    private String id;
    @NotEmpty
    private String name;

    @Range(max = 100, min = 10)
    private int age;
}
